OBJECT POSITION Z
This command will return a real value Z position of the specified 3D object in 3D space.
Return Float=OBJECT POSITION Z(Object Number)
Object Number
Integer
The object number
This command will return a real value z position of the specified 3D object in 3D space
The parameter should be specified using an integer value.
backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
print "BASIC3D EXPRESSION DATA"
if object exist(ObjectNumber)=1
print "3D OBJECTS"
print "exist:";object exist(ObjectNumber)
print "x:";object position x(ObjectNumber)
print "y:";object position y(ObjectNumber)
print "z:";object position z(ObjectNumber)
endif
while mouseclick()=0
sync
endwhile
while mouseclick()=1:endwhile
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index